/**  
 * All rights Reserved, Designed By www.flksh.com
 * @date:   2017-10-26 18:19:29   
 * @Copyright: 2013-2017 www.flksh.com Inc. All rights reserved. 
 * 注意：本内容仅限于上海福乐康社区养老服务有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
package com.zx.cloud.domain;

import java.time.OffsetDateTime;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zx.cloud.domain.enums.TaskStatusEnum;
import com.zx.cloud.model.BasicDomain;
import com.zx.cloud.util.converter.jackson.OffsetDateTimeToIso8601Serializer;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * schedule_job_history-历史记录
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ScheduleJobHistory extends BasicDomain{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 
	 */
	@ApiModelProperty(value = "执行状态")
	 private TaskStatusEnum status;
	/**
	 * 
	 */
	@ApiModelProperty(value = "描述")
	 private String desc;
	/**
	 * 
	 */
	@ApiModelProperty(value = "执行时长(毫秒)")
	 private Long useTime;
	/**
	 * 
	 */
	@ApiModelProperty(value = "执行时间")
	@JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class)
	 private OffsetDateTime  executeTime;
	/**
	 * 
	 */
	@ApiModelProperty(value = "任务名")
	 private String jobName;
	/**
	 * 
	 */
	@ApiModelProperty(value = "任务组")
	 private String groubName;
    
    public ScheduleJobHistory(){
    
    }
    
    public Long getUseTime() {
		return useTime;
	}

	public void setUseTime(Long useTime) {
		this.useTime = useTime;
	}

	public TaskStatusEnum getStatus() {
        return this.status;
    }
    
    public void setStatus(TaskStatusEnum status) {
        this.status = status;
    }
    public String getDesc() {
        return this.desc;
    }
    
    public void setDesc(String desc) {
        this.desc = desc;
    }
    public OffsetDateTime  getExecuteTime() {
        return this.executeTime;
    }
    
    public void setExecuteTime(OffsetDateTime  executeTime) {
        this.executeTime = executeTime;
    }
    public String getJobName() {
        return this.jobName;
    }
    
    public void setJobName(String jobName) {
        this.jobName = jobName;
    }
    public String getGroubName() {
        return this.groubName;
    }
    
    public void setGroubName(String groubName) {
        this.groubName = groubName;
    }
    
}
